<extend name="public:nobase" />
<block name="cont">
<style>
        .form-group {
            float: left;
            width: 100%;
            margin-bottom: 12px;
        }
    </style>
    <div class="main-content" style="width: 400px;">
        <div class="row">
            <form id="menuForm" action="">
                <input type="hidden" name="id" value="{$row['id']}">
                
                <div class="form-group" >
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> {:lang('默认顶级')} </label>

                    <div class="col-sm-9">
                        <select name="pid" lay-verify="required" lay-filter="pid" >
                            <option value="0">默认顶级</option>
                            <volist name="admin_rule" id="vo">
                                <option value="{$vo.id}" <?php if($vo['id'] == $row['pid']){echo 'selected';}?> >{$vo.lefthtml}{$vo.title}</option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="form-group" >
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-3"> {:lang('权限名称')} </label>

                    <div class="col-sm-9">
                        <input name="title" value="{$row['title']}" class="col-xs-10 col-sm-5" id="form-field-3" type="text" placeholder="">
                    </div>
                </div>
                <div class="form-group" >
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-4"> {:lang('控制器/方法')} </label>

                    <div class="col-sm-9">
                        <input name="href" value="{$row['href']}" class="col-xs-10 col-sm-5" id="form-field-4" type="text" placeholder="">
                    </div>
                </div>
                <div class="form-group" >
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-5"> {:lang('排序')} </label>

                    <div class="col-sm-9">
                        <input name="sort" value="{$row['sort']}" class="col-xs-10 col-sm-5" id="form-field-5" type="text" placeholder="">
                    </div>
                </div>
                <div class="form-group" action="">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1">  </label>

                    <div class="col-sm-9">
                        <button class="btn btn-info submit-ajax" data-form="#menuForm" type="button">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        确认提交
                    </button>
                    </div>
                </div>
  
            </form>
        </div>
    </div>
    
</block>